package com.bluemobi.ssm.model;

<#if hasCompositePk&&primeType!=toClassName>import com.bluemobi.ssm.model.${toClassName}Id;</#if>
import com.bluemobi.ssm.model.common.${pagerType};

/**
* 类别
* @author
*
*/
public class ${toClassName} {
<#if primeType!=toClassName>
private ${primeType} ${fieldPrime}; //
</#if>
<#list fields as field>
    <#if field.name!=fieldPrime>
    private ${field.javaType} ${field.name}; //
    </#if>
</#list>

private ${pagerType} pager;
public ${pagerType} getPager() {
return pager;
}
public void setPager(${pagerType} pager) {
this.pager = pager;
}
<#if hasCompositePk && primeType!=toClassName>
public ${primeType} getPk(){
return ${fieldPrime};
}
public void setPk(${primeType} ${fieldPrime}){
this.${fieldPrime} = ${fieldPrime};
}
<#else>
    <#list primtives as prikey>
    public ${prikey.javaType} get${prikey.toMethodName}(){
    return ${prikey.name};
    }
    public void set${prikey.toMethodName}(${prikey.javaType} ${prikey.name}){
    this.${prikey.name} = ${prikey.name};
    }
    </#list>
</#if>
<#list fields as field>
    <#if field.name!=fieldPrime>
    public ${field.javaType} get${field.toMethodName}(){
    return ${field.name};
    }
    public void set${field.toMethodName}(${field.javaType} ${field.name}){
    this.${field.name} = ${field.name};
    }
    </#if>
</#list>
}
